package com.yanxu.bak;

import java.nio.charset.Charset;

/**
 * @author 折戟沉沙铁未销
 * @version V1.0
 * @date 2025-06-04-2025
 * @Description: 这里用一句话描述这个类的作用
 */
public class AMain {
    public static void main(String[] args) {
        byte[] buffer = new byte[]{1};
        System.out.println(new String(buffer));

        String a="128";
        System.out.println(a.getBytes(Charset.forName("utf-16")).length);

        char b='中';
        System.out.println((byte)b);
        //System.out.println(b.getBytes(Charset.forName("utf-8")).length);

        //ByteBuffer byteBuffer = ByteBuffer.allocate(1024);
    }
}